home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / danix201.zip / PASTE.1 < prev    next >
Text File  |  1994-01-16  |  1KB  |  37 lines

  1. PASTE(1)            Danix Utilities                PASTE(1)
  2.  
  3. NAME
  4.     paste - joins lines of files
  5.  
  6. SYNOPSIS
  7.     paste [ -d<dstring> ] files ...
  8.     paste -s [ -d<dstring> ] file
  9.  
  10. DESCRIPTION
  11.     paste joins the lines of the given files, replacing the newlines in
  12.     all but the last file with a tab character, by default.  If a '-' is
  13.     encountered in the file list, standard input is used as one of the
  14.     files.
  15.  
  16.     <dstring> is an optional delimiter string from which delimiter
  17.           characters are taken.  If the delimiter string is exhausted
  18.           and there are more files to process, characters are taken
  19.           cyclically from the delimiter string.  Special characters
  20.           like space and tab need to be quoted from the shell.  Special
  21.           characters recognized are \0 (empty string), \n (newline),
  22.           \t (tab), and \\ (backslash).
  23.  
  24.     -d Take delimiter from an alternate delimiter string
  25.  
  26.     -s Merge the lines in the one given file, separated by tabs or the
  27.        characters in the given string of delimiters.
  28.  
  29. EXAMPLES
  30.     paste -d" " files ...
  31.         join lines of files separating lines by a space
  32.  
  33.     paste -d"abc" files ...
  34.         join lines of given files using characters a, b, and
  35.         c cyclically until all files have been processed
  36.  
  37.